<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serve_name" class="form-control" name="row[serve_name]" type="text" value="{$row.serve_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-serve_image" data-rule="required" class="form-control" size="50" name="row[serve_image]" type="text" value="{$row.serve_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-serve_image" class="btn btn-danger faupload" data-input-id="c-serve_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-serve_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-serve_image" class="btn btn-primary fachoose" data-input-id="c-serve_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-serve_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-serve_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serve_duration" class="form-control" name="row[serve_duration]" type="text" value="{$row.serve_duration|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serve_price" data-rule="required" class="form-control" step="0.01" name="row[serve_price]" type="number" value="{$row.serve_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_details')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-serve_details" class="form-control editor" rows="5" name="row[serve_details]" cols="50">{$row.serve_details|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('图文详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-graphic_details" class="form-control editor" rows="5" name="row[graphic_details]" cols="50">{$row.graphic_details|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="ServeStatusList" item="vo"}
                <label for="row[serve_status]-{$key}"><input id="row[serve_status]-{$key}" name="row[serve_status]" type="radio" value="{$key}" {in name="key" value="$row.serve_status" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_id"  data-source="store/store/index" class="form-control selectpage" name="row[store_id]" type="text" value="{$row.store_id|htmlentities}" data-field="name" data-primary-key="store_id" readonly>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Technician_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-technician_id"  data-source="technician/technician/index" class="form-control selectpage" name="row[technician_id]" type="text" value="{$row.technician_id|htmlentities}" data-field="technician_name" data-primary-key="technician_id" readonly>-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_cid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serve_cid" data-rule="required" data-source="store/servec/index" class="form-control selectpage" name="row[serve_cid]" type="text" value="{$row.serve_cid|htmlentities}" data-field="cname">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serve_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-serve_type" class="form-control selectpicker" name="row[serve_type]" readonly>
                {foreach name="serveTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.serve_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_added')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_added" class="form-control selectpicker" name="row[is_added]">
                {foreach name="isAddedList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_added"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purchase_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-purchase_count" class="form-control" name="row[purchase_count]" type="number" value="{$row.purchase_count|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label" class="form-control selectpage" name="row[label]" type="text" value="{$row.label|htmlentities}" data-field="name" data-source="store/servelabel/index">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('拒绝原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reject_content" class="form-control" name="row[reject_content]" type="text" value="{$row.reject_content|htmlentities}" placeholder="拒绝时填写">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time_label')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time_label" class="form-control" name="row[time_label]" type="text" value="{$row.time_label|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_recommend')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_recommend" class="form-control selectpicker" name="row[is_recommend]">
                {foreach name="isRecommendList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_recommend"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
